/*
 * 每场考试，每个考生的每个专家给的分。新增一条数据。
 */
package controller.action;

import model.service.ScoreService;

import com.opensymphony.xwork2.ActionSupport;

public class GiveScore extends ActionSupport {
	private String result;
	private ScoreService scoreService;
	private String userInfo; 
	
	public String getResult() {
		return result;
	}
	public void setResult(String result) {
		this.result = result;
	}

	public void setScoreService(ScoreService scoreService) {
		this.scoreService = scoreService;
	}

	public void setUserInfo(String userInfo) {
		this.userInfo = userInfo;
	}
	
	public String giveScore(){
		result = scoreService.giveScore(userInfo);
		return SUCCESS;
	
	}
}
